<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>分类展示页面</title>
</head>
<body>
<form>
	<table align="center" width="20%">
		<tr>
			<th>分类序号：</th>
			<th>分类名字：</th>
		</tr>
		{% for page in pages.items %}
			<tr>
				<th>{{ page.id }}</th>
				<th><a href="/goodslist?id={{ page.id }}">{{ page.name }}</a></th>
			</tr>
		{% endfor %}
		<tr>
			<th colspan="2">
				{% if pages.has_prev %}
					<a href="catelist?pag_num={{ pages.prev_num }}">上一页</a>
				{% endif %}
				{% for page in pages.iter_pages() %}
					<a href="catelist?pag_num={{ page }}">{{ page }}</a>
				{% endfor %}
				{% if pages.next_num %}
					<a href="catelist?pag_num={{ pages.next_num }}">下一页</a>
				{% endif %}
			</th>
		</tr>
	</table>
</form>
</body>
</html>